import request from '@/utils/request'

// 查询费用信息列表
export function listExpense(query) {
  return request({
    url: '/project/expense/list',
    method: 'get',
    params: query
  })
}

// 查询费用信息详细
export function getExpense(id) {
  return request({
    url: '/project/expense/' + id,
    method: 'get'
  })
}

// 新增费用信息
export function addExpense(data) {
  return request({
    url: '/project/expense',
    method: 'post',
    data: data
  })
}

// 修改费用信息
export function updateExpense(data) {
  return request({
    url: '/project/expense',
    method: 'put',
    data: data
  })
}

// 删除费用信息
export function delExpense(id) {
  return request({
    url: '/project/expense/' + id,
    method: 'delete'
  })
}
